/**
 * Created by lifetime on 2018/1/29.
 */
import { Injectable } from '@angular/core';
import { HttpParams } from '@angular/common/http';

import { HttpUtil } from '../HttpUtil';

@Injectable()
export class AddressApi{

  constructor (public httpUtil: HttpUtil){
  }

  getAddress(lat:string,lng:string){
    const params = new HttpParams().set("token",localStorage.getItem("token")).set("lat",lat).set( "lng" ,lng);
    return this.httpUtil.get("/api/address/my",params);
  }

}
